﻿using System.Text;

namespace OscarClover.Packets.SignOff
{
    public class SrvCookie : Flap
    {
        public SrvCookie(ushort len,TlvList tlvList)
            : base(FrameTypes.SignOff)
        {
            Len = len;
            TlvList = tlvList;
        }

        public string Bos
        {
            get
            {
                return Encoding.UTF8.GetString(TlvList[0x0005].Value);
            }
        }

        public byte[] AutorizationCookie
        {
            get
            {
                return TlvList[0x0006].Value;
            }
        }
        public string Uin
        {
            get
            {
                return Encoding.UTF8.GetString(TlvList[0x0001].Value);
            }

        }
    }
}